package com.sychip.fhc.app.data.source.dto

enum class DevType {
    Sensor, Repeater, Gateway
}

/**
 * Immutable model class for a  WsnDevice.
 *
 * @param devId devId of the  WsnDevice
 * @param name name of the  WsnDevice
 * @param offsetX offsetX of the  WsnDevice
 * @param offsetY offsetY of the  WsnDevice
 *
 * TODO: The constructor of this class should be `internal` but it is used in previews and tests
 *  so that's not possible until those previews/tests are refactored.
 */
data class WsnDeviceDto(
    val usbId: String = "",
    val devId: String = "",
    var name: String = "",
    var offsetX: Float = 0f,
    var offsetY: Float = 0f,
    var lastData: String = "",
    var devType: String = "",
)



open class WsnDeviceRssiDto(
    val usbId: String = "",
    var fromDevId: String = "",
    var toDevId: String = "",
    var rssi: Int = 0,
    var dateTime: Long = System.currentTimeMillis(),
)

data class WsnTestRecordDto(
    val usbId: String = "",
    var projectName: String="",
    var routeName: String="",
    val fromTime: Long = System.currentTimeMillis(),
    val toTime: Long = System.currentTimeMillis(),
    var imageUrl: String="",
)


data class WsnRssiHisDto(
    val usbId: String = "",
    var fullRssi: String="",
    var rssiType: Int = 0,
    val rssiParse: String="",
    val dateTime: Long = System.currentTimeMillis(),
)

